The Debugger command line

After starting the Debugger, you will set two breakpoints and watch what happens to a variable between the first and the second breakpoint.

- Make sure that the right debugger is selected in your Preferences > Platform view.

In the Project Editor
To start the Debugger:

In the Project Tree, make sure that

pico.shared is highlighted. If it isn't, click on its name to highlight it.
Choose Target > Debug pico.
The Debugger opens.

In the Debugger Command Line Shell

- For a summary of debug commands, type

help at the command line prompt (gdb) .
Note that many of these commands can also be posted from the Source Editor.
In the Project Editor
You will be setting a breakpoint in the source file, display.c . To open the file:

In the Project Tree, make sure that

lib.shared is highlighted.
Right-click anywhere in the Project Tree and choose Context menu > Select From lib.shared Only.
In the File List, double-click on display.c to open the file in the Source Editor.
The file is opened in the Source Editor and, because you are in debug mode, a row of buttons for the most commonly needed debug commands has been added below the menu bar.